Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate some allocations in ReadFrom/WriteTo #124

Merged
merged 1 commit into from
Apr 22, 2023

Conversation

omerfirmak
Copy link
Contributor

@omerfirmak omerfirmak commented Apr 22, 2023

Fixes #123

Before

BenchmarkBitsetReadWrite-16 33740 52474 ns/op 8409 B/op 12 allocs/op

After

BenchmarkBitsetReadWrite-16 55478 21935 ns/op 16 B/op 2 allocs/op

@omerfirmak omerfirmak force-pushed the no-more-buffered-io branch from fe4ce10 to 30bd877 Compare April 22, 2023 15:49
@omerfirmak omerfirmak force-pushed the no-more-buffered-io branch from 30bd877 to 99be40f Compare April 22, 2023 15:53
@lemire
Copy link
Member

lemire commented Apr 22, 2023

Very, very good. Merging.

@lemire lemire merged commit d89a0ac into bits-and-blooms:master Apr 22, 2023
@omerfirmak omerfirmak deleted the no-more-buffered-io branch July 28, 2023 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bufio in WriteTo/ReadFrom causes a lot of GC allocations
2 participants